CS50 Form


We can create a simple form action to google.com/search by using the attribute of the form.

The name of the first input called q, it is because this input can be used like ?q=input, at the end of the google.com/search, which can do a GET from google website with the input named q.

<form action="https://www.google.com/search" method="get">
    <input name="q" type="search">
    <input type="submit" value="search">
</form>
#html #form






你可能感興趣的文章

【Day03】列表渲染 & 表單綁定

【Day03】列表渲染 & 表單綁定

那些年不懂的JS - Scope 範疇

那些年不懂的JS - Scope 範疇

[MTR04] W2 D5 迴圈與函式

[MTR04] W2 D5 迴圈與函式






留言討論